﻿using System;
using System.Data;
using ContractManagementSystem.DataAccess;

namespace ContractManagementSystem.BusinessLogic
{
    public static class LogBusiness
    {
        public static string ErrorMessage { get; set; }
        private static LogDataAccess _logDataAccess;

        public static DataTable ViewLog(int type)
        {
            _logDataAccess = new LogDataAccess();
            return _logDataAccess.ViewLog(type);
        }

        public static DataTable SearchLog(int type, DateTime startDate, DateTime endDate)
        {
            _logDataAccess = new LogDataAccess();
            return _logDataAccess.SearchLog(type, startDate, endDate);
        }
    }
}
